import apiConst from '@/common/js/apiConst'
import common from '@/api/common'

export function login(data) {
  return common.post(apiConst.API.LOGIN, data)
}

export function getInfo(token) {
  return common.get(`${apiConst.API.GET_USER_INFO}/${token}`)
}

export function logout() {
  return common.post(apiConst.API.LOGOUT, null)
}
